<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h2>登录页面</h2>
	<form action="/library/login.do" method="POST">
		用户名:<input type="text" name="username">
			<%
				if("-1".equals(request.getAttribute("errorCode"))){
					out.println("用户名不存在");
				}
			%>
		<br>
		密码:<input type="password" name="password">
			<%
				if("-2".equals(request.getAttribute("errorCode"))){
					out.println("密码错误");
				}
			%>
		 <br>
			<input type="submit" value="登录">
	</form>
</body>
</html>